﻿using System;

namespace time
{
    internal class Array1
    {
        public static void work()
        {
            int[] i = { 1, 3, 2, 4 };
            display(i);
            Console.WriteLine("\n");
            Array.Reverse(i);
            display(i);
        }

        private static void display(int[] i)
        {
            foreach (int i1 in i)
            {
                Console.WriteLine(i1);
            }
        }
    }
}